﻿<?php require_once("admin-header.php");
//require_once("../include/check_get_key.php");

$myid=$_SESSION['user_id'];
$id=intval($_GET['id']);
$sql="UPDATE `problem` SET defunct=if(defunct='Y','N','Y') WHERE `problem_id`=$id and author_id='$myid'"; //USer have right to change this problem?
mysql_query($sql) or die(mysql_error());
?>
<script language=javascript>
	history.go(-1);
</script>
